<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Swan.SwanWakeUp.Controls"
    xmlns:tb="http://www.hardcodet.net/taskbar">


    <Style TargetType="{x:Type local:NumericUpDown}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type local:NumericUpDown}">
                    <Border Background="{TemplateBinding Background}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}">
                        <Grid Background="White">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="2*" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <TextBox x:Name="textBox" Grid.Column="0" />
                            <Grid Grid.Column="1" >
                                <Grid.RowDefinitions>
                                    <RowDefinition/>
                                    <RowDefinition />
                                </Grid.RowDefinitions>

                                <Polygon x:Name="upArrow" Grid.Row="0" Points="10,10 5,0, 0,10" Margin="5,0,0,0" Stroke="Black" Fill="Black" />
                                <Polygon x:Name="downArrow" Grid.Row="1" Points="10,0, 5, 10, 0,0" Margin="5,0,0,0" Stroke="Black" Fill="Black" />
                            </Grid>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>
